﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;

namespace KaroGame.FrontEnd.Menu
{
    public enum MenuElementAction
    {
        New,
        Resume,
        Options,
        Return,
        Nothing,
        Exit
    }

    public class MenuElement
    {
        public string Titel { get; set; }
        public Vector2 Position { get; set; }
        public MenuElementAction Action { get; set; }
        public List<MenuElementOption> Options { get; set; }
        public Rectangle BoundingBox { get; set; }
        public int SelectedOption { get; set; }

        public bool IsSelected { get; set; }

        public MenuElement() { }

        public MenuElement(string titel, Vector2 pos, MenuElementAction action, Rectangle rec)
        {
            Titel = titel;
            Position = pos;
            Action = action;
            BoundingBox = rec;

            Options = new List<MenuElementOption>();
            SelectedOption = 0;
        }
    }
}